package org.harlov.testsys.db;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;

import org.harlov.testsys.loger;


public class diffs {
	
	private static db_main DB;
	public diffs(db_main DB_m) {
		
		DB = DB_m;	
		
	}
	
	public static Vector<String> getDiffs() {
		Vector<String> temp = new Vector<String>();
		try {
			ResultSet res = DB.makeReq("SELECT name FROM complexs ORDER BY id");
			while (res.next()) {
				temp.add(res.getString("name"));
			}
			
		}
		catch (SQLException e) {loger.add(e.getMessage(), null, 1);}
		
		return temp;
	}
	
}
